<ufinterface roottag="voucher" billtype="gl" docid="" receiver="u8" sender="<#if master??>${master.unitcode!""}</#if>" proc="add" codeexchanged="N"
             exportneedexch="N"
             renewproofno="Y" version="2.0">
    <voucher id="">
        <voucher_head>
            <company></company>
            <voucher_type><#if master??>${master.vchrtypecode!""}</#if></voucher_type>
            <fiscal_year><#if master??>${master.acctyear!""}</#if></fiscal_year>
            <accounting_period><#if master??>${master.acctperiod!""}</#if></accounting_period>
            <voucher_id></voucher_id>
            <attachment_number><#if master??>${master.attachment!""}</#if></attachment_number>
            <date><#if master??>${master.createdate!""}</#if></date>
            <enter><#if master??>${master.createuser!""}</#if></enter>
            <cashier></cashier>
            <signature></signature>
            <checker></checker>
            <posting_date></posting_date>
            <posting_person></posting_person>
            <voucher_making_system>GL</voucher_making_system>
            <memo1><#if master??>${master.memo!""}</#if></memo1>
            <memo2></memo2>
            <reserve1></reserve1>
            <reserve2></reserve2>
            <revokeflag></revokeflag>
        </voucher_head>
        <voucher_body>
        <#if items??>
            <#list items as item>
            <entry>
            <#--<entry_id/>-->
            <#--<account_code/>-->
            <#--<abstract/>-->
            <#--<settlement/>-->
            <#--<document_id/>-->
            <#--<document_date/>-->
            <#--<currency/>-->
            <#--<unit_price/>-->
            <#--<exchange_rate1/>-->
            <#--<exchange_rate2/>-->
            <#--<debit_quantity/>-->
                <primary_debit_amount></primary_debit_amount>
                <secondary_debit_amount></secondary_debit_amount>
            <#--<natural_debit_currency/>-->
            <#--<credit_quantity/>-->
                <primary_credit_amount/>
                <secondary_credit_amount/>
            <#--<natural_credit_currency/>-->
                <bill_type/>
                <bill_id/>
                <bill_date/>
                <#list item?keys as itemKey>
                    <#if itemKey??&&itemKey=="auxiliary_accounting">
                <auxiliary_accounting>
                        <#list item[itemKey]?keys as tempKey>
                            <#if tempKey=="cust_id">
                    <item name="operator">-</item>
                            </#if>
                    <item name="${tempKey!""}">${item[itemKey][tempKey]!""}</item>
                        </#list>
                </auxiliary_accounting>
                    <#elseif itemKey??&&itemKey!="cash_flow">
                <${itemKey!""}>${item[itemKey]!""}</${itemKey!""}>
                    </#if>
                </#list>
                <detail>
                    <cash_flow_statement>
                        <#list item?keys as itemKey>
                            <#if itemKey??&&itemKey=="cash_flow">
                                <#list item[itemKey]?keys as tempKey>
                        <cash_flow cash_item="${tempKey!""}" citem_id="${tempKey!""}" cCashItem="${tempKey!""}" ccode="${item[itemKey][tempKey]["ccode"]!""}"
                                   csign="<#if master??>${master.vchrtypecode!""}</#if>" dbill_date="<#if master??>${master.createdate!""}</#if>" md="${item[itemKey][tempKey]["md"]?c!""}"
                                   natural_debit_currency="${item[itemKey][tempKey]["debit"]?c!""}" natural_credit_currency="${item[itemKey][tempKey]["credit"]?c!""}"/>
                                </#list>
                            </#if>
                        </#list>
                    </cash_flow_statement>
                    <code_remark_statement>
                        <#--<code_remark i_id="1">-->
                                <#--<item name=""></item>-->
                            <#--</code_remark>-->
                            <#--<code_remark i_id="2">-->
                                <#--<item name=""></item>-->
                            <#--</code_remark>-->
                     </code_remark_statement>
                </detail>
            </entry>
            </#list>
        </#if>
        </voucher_body>
    </voucher>
</ufinterface>